<?php
/**
 * Created by PhpStorm.
 * User: asus
 * Date: 2017/3/14
 * Time: 21:36
 */

namespace Admin\Controller;


use Think\Controller;

class BaseController extends Controller{

    public function __construct(){
        parent::__construct();
        //判断登录
        if(!session('id')){
            $this->error('请先登录！',U('Login/login'));
        }
    }
}